import request from "@/utils/request";

// 查询报表列表
export function listApp(query) {
  return request({
    url: "/report/manage/list",
    method: "get",
    params: query,
  });
}

// 查询报表详细
export function getApp(id) {
  return request({
    url: "/report/manage/" + id,
    method: "get",
  });
}

// 新增报表
export function addApp(data) {
  return request({
    url: "/report/manage",
    method: "post",
    data: data,
  });
}

// 修改报表
export function updateApp(data) {
  return request({
    url: "/report/manage",
    method: "put",
    data: data,
  });
}

// 删除报表
export function delApp(id) {
  return request({
    url: "/report/manage/" + id,
    method: "delete",
  });
}

// 导出报表
export function exportApp(query) {
  return request({
    url: "/report/manage/export",
    method: "get",
    params: query,
  });
}
